package com.csis.framework.util.jqgrid;

/**
 * Wrapper for entity, it holds the entity's sequence in the all records
 * 
 * @author dailey_dai
 * 
 * @param <E>
 */
public class Cell<E> {
	private E entity;
	private Integer sequence;

	public static <E> Cell<E> create(E e) {
		return new Cell<E>(e);
	}

	protected Cell() {
	}

	public Cell(E e) {
		this.entity = e;
	}

	public E getEntity() {
		return entity;
	}

	public void setEntity(E e) {
		this.entity = e;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public Class<?> getEntityClass() {
		return this.entity.getClass();
	}

}
